package admin

import (
	"context"
	"server/internal/model"
	"server/internal/service"

	"server/api/admin/system"
)

func (c *ControllerSystem) LogHttpList(ctx context.Context, req *system.LogHttpListReq) (res *system.LogHttpListRes, err error) {
	res = new(system.LogHttpListRes)
	res.List, res.Total, err = service.SystemLog().HttpList(ctx, model.SystemHttpListInput{
		Method:   req.Method,
		Route:    req.Route,
		TraceId:  req.TraceId,
		Page:     req.Page,
		PageSize: req.PageSize,
	})
	return
}
